package com.jade.zsy.crm.entity;


import com.jade.bss.db.IdEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 会员卡等级
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:04
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_CRM_LEVEL")
public class CrmLevel extends IdEntity {
    /** 排序优先级 高 */
    public static final int DEFAULT_NO = 0;
    /** 排序优先级 高 */
    public static final int DEFAULT_YES = 1;
    /** 排序优先级 高 */
    public static final int TYPE_IS = 0;
    /** 排序优先级 高 */
    public static final int TYPE_NO = 1;

    public static final int STATUS_NORMAL = 0;//正常状态
    public static final int STATUS_STOP = 1;//停用状态
    public static final int STATUS_DISABLED = 9;//失效状态
    /**
     * 名称
     */
    @Column (name = "name", nullable = false, length = 100)
    private String name;
    /**
     * 是否默认值  0:不是默认值  1：是默认值
     */
    @Column (name = "default_value")
    private int defaultValue=DEFAULT_NO;
    /**
     * 排序优先级
     */
    @Column (name = "priority")
    private int priority = 0;
    /**
     * 联系电话
     */
    @Column(name = "tel", nullable = true, length = 64)
    private String tel;
    /**
     * 时间限制  0:时间永久有效    1:有时间限制
     */
    @Column(name = "timeLimit", nullable = true, length = 64)
    private int timeLimit=TYPE_IS;
    /**
     * 时间限制  有效期   计量单位 月份
     */
    @Column(name = "timeMonth", nullable = true, length = 64)
    private int timeMonth=0;
    /**
     * 状态
     */
    @Column (name = "status")
    private int status=STATUS_NORMAL;
    /**
     * 使用权限说明
     */
    @Column(name = "roleMemo", nullable = true, length = 64)
    private String roleMemo;
    /**
     * 使用须知
     */
    @Column(name = "remark", nullable = true, length = 64)
    private String remark;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(int defaultValue) {
        this.defaultValue = defaultValue;
    }


    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getTimeMonth() {
        return timeMonth;
    }

    public void setTimeMonth(int timeMonth) {
        this.timeMonth = timeMonth;
    }

    public String getRoleMemo() {
        return roleMemo;
    }

    public void setRoleMemo(String roleMemo) {
        this.roleMemo = roleMemo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(int timeLimit) {
        this.timeLimit = timeLimit;
    }
}
